
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '组织管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'zzbh_60ea7e99_x6k2',
        name: "{{zzbh_60ea7e99_x6k2}}",
        binding: 'zzbh',
        updateOn: 'blur',
        defaultI18nValue: '组织编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzbh: FormControl;

    @NgFormControl({
        id: 'zzmc_c3bf72a4_ovjh',
        name: "{{zzmc_c3bf72a4_ovjh}}",
        binding: 'zzmc',
        updateOn: 'blur',
        defaultI18nValue: '组织名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzmc: FormControl;

    @NgFormControl({
        id: 'zzlb_bcbdda0d_6qjw',
        name: "{{zzlb_bcbdda0d_6qjw}}",
        binding: 'zzlb',
        updateOn: 'blur',
        defaultI18nValue: '组织类别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    zzlb: FormControl;

    @NgFormControl({
        id: 'projectNote_355aeae3_7us3',
        name: "{{projectNote_355aeae3_7us3}}",
        binding: 'projectNote',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    projectNote: FormControl;

    @NgFormControl({
        id: 'sszz_c9091bab_thu7',
        name: "{{sszz_c9091bab_thu7}}",
        binding: 'sszz',
        updateOn: 'blur',
        defaultI18nValue: '组织类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    sszz: FormControl;

}